{% extends "base.html" %}
 
{% block title %}
{{ article.title }}
{% endblock title %}
 
 
{% block content %}

    <table>
        <thead>
            <tr>
                <td>用户编号</td>
                <td>用户姓名</td>
                <td>密码</td>
                <td>性别</td>
                <td>邮箱</td>
                <td>年龄</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
            {% for user in users %}
            <tr>
                <td>{{ user.userCode }}</td>
                <td>{{ user.userName }}</td>
                <td>{{ user.password }}</td>
                <td>{{ user.sex }}</td>
                <td>{{ user.email }}</td>
                <td>{{ user.age }}</td>
                <td>
                    <a href="/user/toUpdate?id={{ user.id }}">修改</a> |
                    <a href="/user/delete?id={{ user.id }}">删除</a>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
{% endblock content %}